package com.wz.boot.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
@NoArgsConstructor
@Setter
@Getter
public class ClassProperty {
    private int priority;
    private String name;
    private String describe;
    private String touch;
    private boolean exit;
    private Object object;
    private List<Method> methodList = new ArrayList<>();
    private Method defaultMethod;
    private Method exitMethod;
    private String claName;

    public ClassProperty(int priority, String name, String describe, String touch, boolean exit, Object object,String claName) {
        this.priority = priority;
        this.name = name;
        this.describe = describe;
        this.touch = touch;
        this.exit = exit;
        this.claName = claName;
        this.object = object;
    }

    public void putMethod(Method method) {
        this.methodList.add(method);
    }
}
